package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.PurchaseListGoodsDao;
import com.atguigu.jxc.entity.vo.SupplierGoodsVo;
import com.atguigu.jxc.service.PurchaseListGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseListGoodsServiceImpl implements PurchaseListGoodsService {

    @Autowired
    private PurchaseListGoodsDao goodsDao;
    //修改订单状态
    @Override
    public void updateState(Integer purchaseListId) {
        goodsDao.updateState(purchaseListId);
    }


    //进货统计（可根据 商品类别、商品编码或名称 条件查询）
    @Override
    public List<SupplierGoodsVo> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName) {
        return goodsDao.count(sTime,eTime,goodsTypeId,codeOrName);
    }
}
